package com.comm.vo;

import com.entity.RegistrationFee;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

@ApiModel(value = "保存按钮需要传递的数据")
@Data
public class DoctorShiftVo {

    @ApiModelProperty(name = "id",notes = "主键",dataType = "int",required = true)
    private Integer id;

    @ApiModelProperty(name = "doctorName",notes = "医生名字",dataType = "String",required = true)
    private String doctorName;

    @ApiModelProperty(name = "department",notes = "科室",dataType = "String",required = true)
    private String department;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(name = "remark",notes = "日期",dataType = "date",required = true)
    private Timestamp remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(name = "createDate",notes = "创建时间",dataType = "date",required = true)
    private Timestamp createDate;

    @ApiModelProperty(name = "doctorId",notes = "医生id，，外键列",dataType = "int",required = true)
    private Integer doctorId;

    @ApiModelProperty(name = "registrationFee",notes = "挂号类型",dataType = "RegistrationFee",required = true)
    private RegistrationFee registrationFee	;

}
